<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------

return [
    // 应用名称
    'app_name'               => '',
    // 应用地址
    'app_host'               => '',
    // 应用调试模式
    'app_debug'              => true,
    // 应用Trace
    'app_trace'              => false,
    // 是否支持多模块
    'app_multi_module'       => true,
    // 入口自动绑定模块
    'auto_bind_module'       => false,
    // 注册的根命名空间
    'root_namespace'         => [],
    // 默认输出类型
    'default_return_type'    => 'html',
    // 默认AJAX 数据返回格式,可选json xml ...
    'default_ajax_return'    => 'json',
    // 默认JSONP格式返回的处理方法
    'default_jsonp_handler'  => 'jsonpReturn',
    // 默认JSONP处理方法
    'var_jsonp_handler'      => 'callback',
    // 默认时区
    'default_timezone'       => 'Asia/Shanghai',
    // 是否开启多语言
    'lang_switch_on'         => false,
    // 默认全局过滤方法 用逗号分隔多个
    'default_filter'         => '',
    // 默认语言
    'default_lang'           => 'zh-cn',
    // 应用类库后缀
    'class_suffix'           => true,
    // 控制器类后缀
    'controller_suffix'      => true,

    // +----------------------------------------------------------------------
    // | 模块设置
    // +----------------------------------------------------------------------

    // 默认模块名
    'default_module'         => 'index',
    // 禁止访问模块
    'deny_module_list'       => ['common'],
    // 默认控制器名
    'default_controller'     => 'Index',
    // 默认操作名
    'default_action'         => 'index',
    // 默认验证器
    'default_validate'       => '',
    // 默认的空模块名
    'empty_module'           => '',
    // 默认的空控制器名
    'empty_controller'       => 'Error',
    // 操作方法前缀
    'use_action_prefix'      => true,
    // 操作方法后缀
    'action_suffix'          => 'Action',
    // 自动搜索控制器
    'controller_auto_search' => true,

    // +----------------------------------------------------------------------
    // | URL设置
    // +----------------------------------------------------------------------

    // PATHINFO变量名 用于兼容模式
    'var_pathinfo'           => 's',
    // 兼容PATH_INFO获取
    'pathinfo_fetch'         => ['ORIG_PATH_INFO', 'REDIRECT_PATH_INFO', 'REDIRECT_URL'],
    // pathinfo分隔符
    'pathinfo_depr'          => '/',
    // HTTPS代理标识
    'https_agent_name'       => '',
    // IP代理获取标识
    'http_agent_ip'          => 'X-REAL-IP',
    // URL伪静态后缀
    'url_html_suffix'        => 'html',
    // URL普通方式参数 用于自动生成
    'url_common_param'       => false,
    // URL参数方式 0 按名称成对解析 1 按顺序解析
    'url_param_type'         => 0,
    // 是否开启路由延迟解析
    'url_lazy_route'         => false,
    // 是否强制使用路由
    'url_route_must'         => false,
    // 合并路由规则
    'route_rule_merge'       => false,
    // 路由是否完全匹配
    'route_complete_match'   => false,
    // 使用注解路由
    'route_annotation'       => false,
    // 域名根，如thinkphp.cn
    'url_domain_root'        => '',
    // 是否自动转换URL中的控制器和操作名
    'url_convert'            => true,
    // 默认的访问控制器层
    'url_controller_layer'   => 'controller',
    // 表单请求类型伪装变量
    'var_method'             => '_method',
    // 表单ajax伪装变量
    'var_ajax'               => '_ajax',
    // 表单pjax伪装变量
    'var_pjax'               => '_pjax',
    // 是否开启请求缓存 true自动缓存 支持设置请求缓存规则
    'request_cache'          => false,
    // 请求缓存有效期
    'request_cache_expire'   => null,
    // 全局请求缓存排除规则
    'request_cache_except'   => [],
    // 是否开启路由缓存
    'route_check_cache'      => false,
    // 路由缓存的Key自定义设置（闭包），默认为当前URL和请求类型的md5
    'route_check_cache_key'  => '',
    // 路由缓存类型及参数
    'route_cache_option'     => [],

    // 默认跳转页面对应的模板文件
    'dispatch_success_tmpl'  => Env::get('think_path') . 'tpl/dispatch_jump.tpl',
    'dispatch_error_tmpl'    => Env::get('think_path') . 'tpl/dispatch_jump.tpl',

    // 异常页面的模板文件
    'exception_tmpl'         => Env::get('think_path') . 'tpl/think_exception.tpl',

    // 错误显示信息,非调试模式有效
    'error_message'          => '页面错误！请稍后再试～',
    // 显示错误信息
    'show_error_msg'         => true,
    // 异常处理handle类 留空使用 \think\exception\Handle
    'exception_handle'       => '\app\common\exception\ExceptionHandler',

    // +----------------------------------------------------------------------
    // | 自定义设置
    // +----------------------------------------------------------------------
    'timer_server_url' => "http://192.168.0.74:9020",
    'sms_server_url' => "http://192.168.0.74:9020",
    'bus_server_url' => "http://192.168.0.71:8090",
    'data_export_task_server_url' => "http://192.168.0.74:9100/export/add",
    'wxpay' => [
        'mch_id' => '1545750851',
        'key' => '0d68069bcc7fccadb08330d9e34ee4da',
        'sslcert_path' => __DIR__ . '/../wxpay_pem/apiclient_cert.pem',
        'sslkey_path' => __DIR__ . '/../wxpay_pem/apiclient_key.pem',
        'notify_url' => 'https://api.ddebike.com/wallet/wxpay_notify',
        'refund_notify_url' => 'https://api.ddebike.com//wallet/wxpay_refund_notify',
    ],
    'alipay' => [
        'notify_url' => 'https://api.ddebike.com/wallet/alipay_notify',
        'refund_notify_url' => 'https://api.ddebike.com/wallet/alipay_refund_notify',
    ],
    'platforms' => [
        [
            'id' => 'wxmpu',
            'app_name' => '510K',
            'appid' => 'wx289535f41d397084', //文迪 , wxf0084ef600c231d8 八方 wx1225814c97d5dc8b
            'key' => '5cce0bf7de31574455dd33aca3b3cec0',
        ],
        [
            'id' => 'wxapp',
            'app_name' => '510K',
            'appid' => 'wx7a953e7394fa6dde', //文迪 , wxf0084ef600c231d8 八方 wx1225814c97d5dc8b
            'key' => '7301f2946cb0dd94c6300721d940f36e',
        ],
        [
            'id' => 'wxweb',
            'app_name' => 'web',
            'appid' => 'wx38be159d291876cc', //微信网页登录
            'key' => '78e1cc4509e47ffd31623a1b12131bf1',
        ],
        [
            'id' => 'wxmpops',
            'app_name' => '510K',
            'appid' => 'wxec2b80a9ab9f704c', //文迪 , wxf0084ef600c231d8 八方 wx1225814c97d5dc8b
            'key' => '6784735b3e7d1f5df3aa87a7fc8d1d8c',
        ],
        [
            'id' => 'alimpu',
            'app_name' => '510K',
            'appid' => '2019091267264526', //文迪 , wxf0084ef600c231d8 八方 wx1225814c97d5dc8b
            'private_key_path' => __DIR__ . '/../alimp_pem/rsa_private_key.pem',
            'public_key' => ' MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxwQyAOqNw0fcsDHuEqG9U1LPPT1hZEwDzeiI03PDg2AAdklCW5sYDU8T6Xp2J7Ge8VhgdAjL4rxeIwooIBLTCm3ZuLXkSqJWPBhiyew2Bd/ih4GOeO1y4iTb2Qy7W0prtt99J9/L9glqtXTWOPwZNsjBxLfxIeyCiVXQWAa73yLDJhfayvep42b1klEBHo7kVfB6jUV4AE4ntL9ESDT/V2Zu4lc7sA+ztbpdV7DN4eW+fhK0ClUFoX8H4/LxXCQgXWeqO2DObY7SeXu13gBa/sikKErHV6eSOYUsWdpl3Ekoj+CK/HikcyIDMczFGc0BdE4K98Qrb+fIFIcdgysnawIDAQAB',
            'aeskey' => 'USEhQMatSUGpv+dyusskFA==',
        ],
        [
            'id' => 'ios',
            'app_name' => 'ddex',
            'appid' => 'wx7a953e7394fa6dde', //文迪 , wxf0084ef600c231d8 八方 wx1225814c97d5dc8b
            'key' => '7301f2946cb0dd94c6300721d940f36e',
        ],
    ],
    'citys'=>[
        [
            'id' =>'451100',
            'al_token' => '98d1df82c521c3f5762fe029bcd2633884eb925eb88cf66f0a68daa68ef52c5f',
            'wxpay' => [
                'mch_id' => '1545750851',
                'key' => '0d68069bcc7fccadb08330d9e34ee4da',
                'sslcert_path' => __DIR__ . '/../wxpay_pem/apiclient_cert.pem',
                'sslkey_path' => __DIR__ . '/../wxpay_pem/apiclient_key.pem',
                'notify_url' => 'https://api.ddebike.com/wallet/wxpay_notify',
                'refund_notify_url' => 'https://api.ddebike.com//wallet/wxpay_refund_notify',
            ],
            'alipay' => [
                'appid' => '2019091267264526', //文迪 , wxf0084ef600c231d8 八方 wx1225814c97d5dc8b
                'private_key_path' => __DIR__ . '/../alimp_pem/rsa_private_key.pem',
                'public_key' => ' MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxwQyAOqNw0fcsDHuEqG9U1LPPT1hZEwDzeiI03PDg2AAdklCW5sYDU8T6Xp2J7Ge8VhgdAjL4rxeIwooIBLTCm3ZuLXkSqJWPBhiyew2Bd/ih4GOeO1y4iTb2Qy7W0prtt99J9/L9glqtXTWOPwZNsjBxLfxIeyCiVXQWAa73yLDJhfayvep42b1klEBHo7kVfB6jUV4AE4ntL9ESDT/V2Zu4lc7sA+ztbpdV7DN4eW+fhK0ClUFoX8H4/LxXCQgXWeqO2DObY7SeXu13gBa/sikKErHV6eSOYUsWdpl3Ekoj+CK/HikcyIDMczFGc0BdE4K98Qrb+fIFIcdgysnawIDAQAB',
                'aeskey' => 'USEhQMatSUGpv+dyusskFA==',
                'notify_url' => 'https://api.ddebike.com/wallet/alipay_notify',
                'refund_notify_url' => 'https://api.ddebike.com/wallet/alipay_refund_notify',
            ],
        ],
        [
            'id' =>'default',
            'al_token' => '07474c696896be29c0040c05ee863c2f39a1797ddf30be71cce1b8045968310f',
            'wxpay' => [
                'mch_id' => '1545750851',
                'key' => '0d68069bcc7fccadb08330d9e34ee4da',
                'sslcert_path' => __DIR__ . '/../wxpay_pem/apiclient_cert.pem',
                'sslkey_path' => __DIR__ . '/../wxpay_pem/apiclient_key.pem',
                'notify_url' => 'https://api.ddebike.com/wallet/wxpay_notify',
                'refund_notify_url' => 'https://api.ddebike.com//wallet/wxpay_refund_notify',
            ],
            'alipay' => [
                'appid' => '2019091267264526', //文迪 , wxf0084ef600c231d8 八方 wx1225814c97d5dc8b
                'private_key_path' => __DIR__ . '/../alimp_pem/rsa_private_key.pem',
                'public_key' => ' MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxwQyAOqNw0fcsDHuEqG9U1LPPT1hZEwDzeiI03PDg2AAdklCW5sYDU8T6Xp2J7Ge8VhgdAjL4rxeIwooIBLTCm3ZuLXkSqJWPBhiyew2Bd/ih4GOeO1y4iTb2Qy7W0prtt99J9/L9glqtXTWOPwZNsjBxLfxIeyCiVXQWAa73yLDJhfayvep42b1klEBHo7kVfB6jUV4AE4ntL9ESDT/V2Zu4lc7sA+ztbpdV7DN4eW+fhK0ClUFoX8H4/LxXCQgXWeqO2DObY7SeXu13gBa/sikKErHV6eSOYUsWdpl3Ekoj+CK/HikcyIDMczFGc0BdE4K98Qrb+fIFIcdgysnawIDAQAB',
                'aeskey' => 'USEhQMatSUGpv+dyusskFA==',
                'notify_url' => 'https://api.ddebike.com/wallet/alipay_notify',
                'refund_notify_url' => 'https://api.ddebike.com/wallet/alipay_refund_notify',
            ],
        ]
    ],

    'debug' => 0,
    'system_warning_ding_ding_token' => '5fea8d95570c98295a31fa17b51d64c759091e10655f0d314fefc95c59c9b021',
    'bike_alert_ding_ding_token' => 'b805261ed854bfcfb2ce92496a87091b09557e619276f7145a060d58d0298cad',
    'morning_call_ding_ding_token' => '07474c696896be29c0040c05ee863c2f39a1797ddf30be71cce1b8045968310f',

    'xin_yan' => [
        'cer_path' => __DIR__ . '/../idc_auth/baofoo_pub.cer',
        'pfx_path' => __DIR__ . '/../idc_auth/baofoo_pri.pfx',
        'pfx_passwd' => '171959',
        'member_id' => '8150733795',
        'terminal_id' => '8150733795',
        'rtpath' => '/data/ebike/',
        'buscode' => 'C3',
    ],

    'version' => [
        'id' => '10001',
        'androidv' => '1.0.0',
        'androidurl' => 'https://fir.im/a57u',
        'iosv' => '1.0.0',
        'iosurl' => '',
        'note' =>'1234576\n1111\n',
        'wgtUrl'=>'http://47.96.17.201/download/ddex/__UNI__CFC53F4.wgt',
    ],

    'alidayu' => [
        // 阿里短信配置
        'accessKeyId' => 'LTAI4FnZMdpfgyBeGJNCMiZ1',
        'accessKeySecret' => 'vCNqRmBNAgVvU5eDduYwmKFEIrvXXz',
        'signName' => '多多E行',
    ],
    'tbit_ecu_push_server' => '192.168.0.73:11147',
];
